<html>
  <head>
    <title>oncopy 示例演示</title>

    <script>
      function log(e) {
        console.log(e, '22')
      }
    </script>
  </head>

  <body>
    <div>
      <div oncopy="log(1)">试着复制这句话！</div>

      <h3>Log</h3>
      <textarea rows="15" cols="80" id="log" readonly="true"></textarea>
      <div oncopy="(e) => log(e)">试着复制这句话！</div>
    </div>
  </body>
</html>
